<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 200px;height: 200px;
            background-color: purple;
            background-image:url("../课后练习/img/banner.jpg") ;/*设置背景图片*/
            background-size: 100px 100px;/*设置背景图片的尺寸*/
            background-repeat: no-repeat;/*设置禁止重复*/
            background-position: 50px 100px;/*设置背景图片位置*/
        }
    </style>
</head>
<body>
<div></div>
<h1 style="color: red">颜色测试1</h1>
<h1 style="color: #ff0000">颜色测试2</h1>
<h1 style="color: #f00">颜色测试3</h1>
<h1 style="color: rgb(255,0,0)">颜色测试4</h1>
<h1 style="color: rgba(255,0,0,0.05)">颜色测试5</h1>
</body>
</html>